{%extends "index.html"%}
{% block content %}
<div class="container-flexible login"> 
        <div class="column span-10 centered"> 
            
            <form action="/accounts/login/" method="post" id="login-form"><div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='6f75dee765bfca4c0456652e61aaa7a2' /></div> 
                <fieldset class="module"> 
                    <div class="row"> 
                        <div class="column span-4"><label for="id_username" class="required">Username:</label></div> 
                        <div class="column span-6 last"><input type="text" name="username" id="id_username" /></div> 
                    </div> 
                    <div class="row"> 
                        <div class="column span-4"><label for="id_password" class="required">Password:</label></div> 
                        <div class="column span-6 last"><input type="password" name="password" id="id_password" /><input type="hidden" name="this_is_the_login_form" value="1" /></div> 
                    </div> 
                </fieldset> 
                <div class="module submit-row"> 
                    <ul class="submit-row"> 
                        <li class="submit-button-container"><input type="submit" class="default" value="Log in" /></li> 
                    </ul> 
                </div> 
            </form> 
        </div> 
    </div> 
 
            <br class="clear" /> 
        </div> 

<!--
<div id='login_form'> 
	<h3 class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-top contentheader"><b>
			Вход в систему
	</b></h3> 
				<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active" id='contentbody'>
{% if form.errors %}
<div class='ui-widget ui-state-error ui-corner-all cloud'>Ошибочка вышла=( <br>Проверьте введеные данные.</div>
{% endif %}

<form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<div style='text-align: center;'>
	<input type="submit" value="Войти" class='ui-state-default ui-corner-all button'/>
</div>
<input type="hidden" name="next" value="{{ next }}" />
</form>
				</div> 
			</div>
			-->
{% endblock %}
